import serial
import sys
import time



port = "/dev/ttyS0"
ser = serial.Serial(port,57600,timeout=1)
ser.open()

while 1:

	if ser.isOpen():

		ser.write("h")
		response = ser.read(ser.inWaiting())
		print response
		print "\n"
		time.sleep(.01)
exit(0)
